package com.resrun.dto;

import lombok.Data;

import java.util.Date;

/**
 * 证书申请请求参数
 *
 * @author hupan
 * @since 2024-01-23
 */
@Data
public class CertValidDateDto {

    /**
     * 生效日期
     */
    private Date effectiveDate;

    /**
     * 失效日期
     */
    private Date expirationDate;


    public static CertValidDateDto of(Date effectiveDate, Date expirationDate) {
        CertValidDateDto certValidDateDTO = new CertValidDateDto();
        certValidDateDTO.setEffectiveDate(effectiveDate);
        certValidDateDTO.setExpirationDate(expirationDate);
        return certValidDateDTO;
    }

}
